/**
* App.js main de aplicativo Sencha Touch.
* Aqui se declaran el modelo-vista-controlar utilizados
* en el aplicativo.
*/
var myVersion = '1.2.7.2.2.4.3';

Ext.Loader.setPath({
    'Ext': 'sdk/src'
});

Ext.Loader.setConfig({ enabled: true });
//</debug>

Ext.application({
    name: 'entgpv11',
    glossOnIcon: false,

    requires: [
        "Ext.APP_GLOBAL",
        "Ext.MessageBox",
		"Ext.chart",
        "Ext.data.TreeStore"
    ],
    viewport: {
        autoMaximize: false
    },
    models: [
            "Login",
            "Note",
            "Images",
            "Filter",
            "ListVideo",
            "Region",
            "File",
            "Avance",
             "ExcelDropBox"
            ],
    stores: [
	         "Images",
	         "Notes",
             "Filter",
             "ListVideo",
             "Region",
             "File",
             "ExcelDropBox"
            ],
    controllers: [
			"Main",
			"Notes",
			"Device",
            "Add"
			],
    views: [
	        "MainContainer",
	        "ImageCamera",
			"Details",
			"MenuUser00",
			"MenuUser01",
			"MenuUser02",
             "MenuUser03"
		  ],

    icon: {
        57: 'resources/icons/Icon.png',
        72: 'resources/icons/Icon~ipad.png',
        114: 'resources/icons/Icon@2x.png',
        144: 'resources/icons/Icon~ipad@2x.png'
    },

    phoneStartupScreen: 'resources/loading/Homescreen.png',
    tabletStartupScreen: 'resources/loading/Homescreen~ipad.png',

    launch: function () {
        try {
           
            Ext.fly('appLoadingIndicator').destroy();
            var mainContainer = {
                xtype: "maincontainer",
                versionString: myVersion
            };

            Ext.Viewport.add([mainContainer]);
          

        } catch (ex) {
            APP_GLOBAL.SetLog(' launch::' + ex);
        }
    }
});
